package org.jeecg.modules.oms.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 领料单主表
 */
@Data
@TableName("wms_requisition")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "wms_requisition对象", description = "领料单主表")
public class WmsRequisitionVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**
     * 领料单号
     */
    @Excel(name = "领料单号", width = 15)
    @ApiModelProperty(value = "领料单号")
    private String requisitionNo;

    /**
     * 关联订单ID
     */
    @Excel(name = "关联订单ID", width = 15)
    @ApiModelProperty(value = "关联订单ID")
    private String orderId;

    /**
     * 关联订单编号
     */
    @Excel(name = "关联订单编号", width = 15)
    @ApiModelProperty(value = "关联订单编号")
    private String orderNo;

    /**
     * 优化软件类型：0-长风，1-新格尔
     */
    @Excel(name = "优化软件类型", width = 15, dicCode = "optimization_software_type")
    @ApiModelProperty(value = "优化软件类型：0-长风，1-新格尔")
    @Dict(dicCode = "optimization_software_type")
    private Integer optimizationSoftwareType;

    /**
     * 领料日期
     */
    @Excel(name = "领料日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "领料日期")
    private Date requisitionDate;

    /**
     * 领料人
     */
    @Excel(name = "领料人", width = 15)
    @ApiModelProperty(value = "领料人")
    private String requisitionPerson;

    /**
     * 审核状态（0:待审核,1:已审核,2:已驳回）
     */
    @Excel(name = "审核状态", width = 15, dicCode = "requisition_status")
    @ApiModelProperty(value = "审核状态（0:待审核,1:已审核,2:已驳回）")
    @Dict(dicCode = "requisition_status")
    private Integer status;

    /**
     * 审核人
     */
    @Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String approver;

    /**
     * 审核时间
     */
    @Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date approveTime;

    /**
     * 审核意见
     */
    @Excel(name = "审核意见", width = 30)
    @ApiModelProperty(value = "审核意见")
    private String approveComment;

    /**
     * 备注
     */
    @Excel(name = "备注", width = 30)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
} 